package ph.edu.ics.sp.graphisched;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class CSVFilter extends FileFilter {

	public boolean accept(File file) {
		if (file.isDirectory()) {
			return true;
		}

		// Convert to lower case before checking extension
		return file.getName().toLowerCase().endsWith(".csv");
	}

	public String getDescription() {
		return "Graphi-Sched file (*.csv)";
	}

}
